package com.caiyj.strategy;

/**
 * @Description:
 * @author:CAIYJ
 * @Date:2018/12/14 21:25
 */
public class ConcreteStrategyA implements Strategy {
    @Override
    public int algorithm(int[] a) {
        int x = 0;
        for (int i = 0, length = a.length; i < length; i++) {
            x += a[i];
        }
        return x;
    }
}
